Description
GnuCOBOL 2.2 has a use-after-free in the end_scope_of_program_name() function in cobc/parser.y via crafted COBOL source code.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gnucobol | 4.0~early~20200606-1 | — |
| Debian 13 | gnucobol | 4.0~early~20200606-1 | — |
| Debian 12 | gnucobol | 4.0~early~20200606-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | gnucobol | No fix yet | — |
| Ubuntu 18.04 LTS | open-cobol | No fix yet | — |
| Ubuntu 16.04 LTS | open-cobol | No fix yet | — |