🔍 CVE-2026-13048

8.2
CVSS Score
HIGH
2026-08-13
2026-08-26 16:51
✅ 완료

🇰🇷 한글 설명

Perl의 Data::MuForm::Localizer 0.05 이하 버전에서 발생하는 취약점으로, 언어 속성값에 경로 탐색 문자(../)를 삽입하여 임의의 .po 파일을 로드할 수 있습니다. 로드된 파일의 Plural-Forms 헤더 내에 악성 명령어를 포함하면, 카탈로그를 로드하는 과정에서 해당 명령어가 실행되어 임의 코드 실행이 가능해집니다.

💡 쉬운 설명

프로그램이 언어 설정을 읽어올 때 공격자가 조작한 파일을 읽게 만들어, 컴퓨터가 공격자의 명령을 실행하도록 만드는 보안 약점입니다. 사용자가 언어 설정을 바꿀 수 있는 웹사이트 등에서 위험할 수 있습니다.

🇺🇸 원문 (English)

Data::MuForm::Localizer versions through 0.05 for Perl execute Perl from a message catalog header, reached at an arbitrary path because load_lexicon interpolates the language attribute into the catalog filename. load_lexicon builds the catalog path by appending `Messages/$lang.po` to the directory holding Localizer.pm, where $lang is the language attribute, with no check that it names a bare locale tag. A value holding `../` segments walks out of the message directory, so any readable path with a `.po` suffix is loaded. While parsing the catalog, extract_header_msgstr takes the `Plural-Forms:` header, prefixes `$` to the bare words nplurals, plural and n, and passes the rest verbatim into a string that is evaluated: the nplurals form evaluates the header expression immediately, and the plural_code form compiles it into a subroutine whose body runs when a plural message is localized. A header of `nplurals=2; plural=(system('...'),0);` therefore runs that command as the catalog loads. The evaluation inherits strict, so an expression that assigns to an undeclared variable fails to compile, while one built from calls alone does not. An application that sets the language attribute from request data, an Accept-Language header or a locale parameter, and an attacker who can place a file with a `.po` suffix and chosen contents at a readable path, together give code execution as the application user. The message expansion path is not affected: expand_named substitutes only the placeholder names the caller supplies, and _mangle_value returns the value unchanged.

📍 영향받는 시스템

Data::MuForm::Localizer versions through 0.05

⚔️ 공격 벡터

사용자 입력값(Accept-Language 헤더 등)을 통해 조작된 언어 속성값을 전달하여 악성 .po 파일을 로드함

🛡️ 대응 방법

Data::MuForm::Localizer를 최신 버전으로 업데이트하거나, 언어 속성값에 대한 경로 탐색 및 특수문자 검증 로직을 추가함

🔧 검증 코드

출력된 버전 번호가 0.05 이하인지 확인하여 취약 여부를 판단합니다.

Shell / Script
perl -MData::MuForm::Localizer -e 'print $Data::MuForm::Localizer::VERSION . "\n"' 2>/dev/null

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

💻 영향받는 소프트웨어

Spring Data REST