Name | CVE-2021-36770 |
Description | Encode.pm, as distributed in Perl through 5.34.0, allows local users to gain privileges via a Trojan horse Encode::ConfigLocal library (in the current working directory) that preempts dynamic module loading. Exploitation requires an unusual configuration, and certain 2021 versions of Encode.pm (3.05 through 3.11). This issue occurs because the || operator evaluates @INC in a scalar context, and thus @INC has only an integer value. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libencode-perl (PTS) | jessie | 2.63-1+deb8u1 | vulnerable |
stretch | 2.88-1 | fixed | |
buster | 3.00-1+deb10u1 | fixed | |
bullseye | 3.08-1+deb11u2 | fixed | |
bullseye (security) | 3.08-1+deb11u1 | fixed | |
bookworm | 3.19-1 | fixed | |
sid, trixie | 3.21-1 | fixed | |
perl (PTS) | jessie, jessie (lts) | 5.20.2-3+deb8u14 | fixed |
stretch (security) | 5.24.1-3+deb9u5 | fixed | |
stretch (lts), stretch | 5.24.1-3+deb9u8 | fixed | |
buster, buster (lts) | 5.28.1-6+deb10u2 | fixed | |
bullseye | 5.32.1-4+deb11u3 | fixed | |
bullseye (security) | 5.32.1-4+deb11u4 | fixed | |
bookworm | 5.36.0-7+deb12u1 | fixed | |
sid, trixie | 5.40.0-7 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libencode-perl | source | jessie | (unfixed) | end-of-life | ||
libencode-perl | source | stretch | (not affected) | |||
libencode-perl | source | buster | (not affected) | |||
libencode-perl | source | bullseye | 3.08-1+deb11u1 | |||
libencode-perl | source | (unstable) | 3.08-2 | |||
perl | source | jessie | (not affected) | |||
perl | source | stretch | (not affected) | |||
perl | source | buster | (not affected) | |||
perl | source | bullseye | 5.32.1-4+deb11u1 | |||
perl | source | (unstable) | 5.32.1-5 |
[buster] - libencode-perl <not-affected> (Vulnerable code introduced later)
[stretch] - libencode-perl <not-affected> (Vulnerable code introduced later)
[buster] - perl <not-affected> (Vulnerable code introduced later)
[stretch] - perl <not-affected> (Vulnerable code introduced later)
Introduced by: https://github.com/dankogai/p5-encode/commit/9c5f5a307863b66da3701f6c7d13139aa20179b8 (3.05)
Fixed by: https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74 (3.12)
Introduced by: https://github.com/Perl/perl5/commit/8ced1423dbb2a874f2d95e9c5c4c46960c2bf318 (v5.32.0-RC0)
Fixed by: https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9
[jessie] - perl <not-affected> (Vulnerable code introduced later)