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) | 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) | 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 | 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 | 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