CVE-2022-1271
Beskrivelse
An arbitrary file write vulnerability was found in GNU gzip's zgrep utility. When zgrep is applied on the attacker's chosen file name (for example, a crafted file name), this can overwrite an attacker's content to an arbitrary attacker-selected file. This flaw occurs due to insufficient validation when processing filenames with two or more newlines where selected content and the target file names are embedded in crafted multi-line file names. This flaw allows a remote, low privileged attacker to force zgrep to write arbitrary files on the system.
Beskrivelsen gjengis slik kilden har publisert den, på engelsk.
Nøkkelfakta
- Publisert
- 2022-08-31
- Sist endret
- 2026-10-14
- Tildelt av
- secalert@redhat.com
- CVSS-vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Scoret av
- nvd@nist.gov (NVD Primary)
- Sannsynlighet for utnyttelse
-
4.3 %
høyere enn 90 %
av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15 - Rettelse finnes
- Ja, se referansene
Berørte produkter
| Leverandør | Produkt | Versjoner | Status |
|---|---|---|---|
| Debian | Debian Linux | 10.0 | Berørt |
| Gnu | Gzip | < 1.12 | Berørt |
| Redhat | Jboss Data Grid | 7.0.0 | Berørt |
| Tukaani | Xz | < 5.2.5 | Berørt |
Svakhetstype
-
CWE-20: Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
-
CWE-179: Incorrect Behavior Order: Early Validation
The product validates input before applying protection mechanisms that modify the input.
Angrepsteknikker
Utledet gjennom svakhetstypen: CVE til CWE til CAPEC til ATT&CK. Dette viser hvilke teknikker svakhetsklassen historisk brukes til. Det er ikke en påstand om at nettopp denne sårbarheten er utnyttet slik.
- T1027: Obfuscated Files or Information
- T1036.001: Invalid Code Signature
- T1539: Steal Web Session Cookie
- T1553.002: Code Signing
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
Referanser
- https://access.redhat.com/security/cve/CVE-2022-1271
- https://bugzilla.redhat.com/show_bug.cgi?id=2073310
- https://git.tukaani.org/?p=xz.git%3Ba%3Dcommit%3Bh%3D69d1b3fc29677af8ade8dc15dba83f0589cb…
- https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html
- https://security-tracker.debian.org/tracker/CVE-2022-1271
- https://security.gentoo.org/glsa/202209-01
- https://security.netapp.com/advisory/ntap-20220930-0006/
- https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch
- https://www.openwall.com/lists/oss-security/2022/04/07/8
- https://access.redhat.com/security/cve/CVE-2022-1271
- https://bugzilla.redhat.com/show_bug.cgi?id=2073310
- https://git.tukaani.org/?p=xz.git%3Ba%3Dcommit%3Bh%3D69d1b3fc29677af8ade8dc15dba83f0589cb…
- https://lists.gnu.org/r/bug-gzip/2022-04/msg00011.html
- https://security-tracker.debian.org/tracker/CVE-2022-1271
- https://security.gentoo.org/glsa/202209-01
- https://security.netapp.com/advisory/ntap-20220930-0006/
- https://tukaani.org/xz/xzgrep-ZDI-CAN-16587.patch
- https://www.openwall.com/lists/oss-security/2022/04/07/8
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-455250.html
Relatert hos Berigo
Artikler
-
En atten år gammel feil i Linux-kjernen gir vanlige brukere root-tilgang
Samme produkt
2026-08-08
Tencent Zhuque Lab har funnet en feil i SCTP-delen av Linux-kjernen som har ligget der siden 2008. En vanlig bruker kan bruke den til å skaffe seg ro…
-
Bad Epoll gir root-tilgang i Linux-kjernen
Samme produkt
2026-07-03
CVE-2026-46242 er en use-after-free i Linux-kjernens epoll som lar en uprivilegert prosess skaffe seg root på servere, klienter og Android-enheter.
-
Miasma: kompromitterte npm-pakker fra Red Hat stjeler nøkler
Samme produkt
2026-06-05
32 npm-pakker under @redhat-cloud-services ble endret med skadevare som stjeler nøkler til sky, SSH og AI-verktøy, og sprer seg videre til andre pakk…
-
Kompromitterte npm-pakker stjeler utvikler- og CI/CD-hemmeligheter
Samme produkt
2026-06-01
En ny forsyningskjedekampanje har kompromittert npm-pakker under navnerommet @redhat-cloud-services. Skadevaren kjører allerede under installasjon og…
Berører dette dere?
En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.