Red Hat VEX
RHVEX-CVE-2022-24921
golang: regexp: stack exhaustion via a deeply nested expression
Details
A stack overflow flaw was found in Golang's regexp module, which can crash the runtime if the application using regexp accepts very long or arbitrarily long regexps from untrusted sources that have sufficient nesting depths. To exploit this vulnerability, an attacker would need to send large regexps with deep nesting to the application. Triggering this flaw leads to a crash of the runtime, which causes a denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | golang | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-bin | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-docs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-misc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-src | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | golang-tests | All versions, no fix (out of support scope) |