🔍 CVE-2026-76904

9.8
CVSS Score
CRITICAL
2026-08-21
2026-10-14 19:10
✅ 완료

🇰🇷 한글 설명

GeoTools 라이브러리의 PostGIS DataStore 구현체에서 OGC 필터를 실행할 때 SQL 인젝션 취약점이 발생합니다. jsonArrayContains 함수가 입력값을 이스케이프 처리하지 않고 SQL에 직접 포함시키기 때문에 발생하며, PostGIS 12 이상 버전의 String 또는 JSON 필드를 사용하는 환경에서 위험합니다.

💡 쉬운 설명

지도 데이터를 처리하는 프로그램에서 특수하게 조작된 명령어를 입력하면 데이터베이스를 마음대로 조작할 수 있는 보안 약점입니다. 공격자가 데이터베이스의 정보를 훔치거나 내용을 변조할 수 있어 매우 위험합니다.

🇺🇸 원문 (English)

GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present when executing OGC Filters with PostGIS DataStore implementation: `jsonArrayContains` function; Requires PostGIS 12 or greater with a String or JSON field. For PostGIS 12 and greater `jsonArrayContains(<column>, <pointer>, <value>)` function writes `<value>` into generated SQL without escaping. Patches are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.

📍 영향받는 시스템

GeoTools 30.5 이하 버전, 33.6 미만 버전, 34.5 미만 버전 (PostGIS 12 이상 사용 시)

⚔️ 공격 벡터

jsonArrayContains 함수를 사용하는 OGC 필터에 이스케이프되지 않은 악성 SQL 구문을 주입

🛡️ 대응 방법

GeoTools를 패치된 버전(33.6, 34.5 또는 최신 버전)으로 업데이트하고, PostGIS 연결 풀의 권한을 최소화합니다.

🔧 검증 코드

명령어 결과에 취약한 버전 범위가 나타나면 해당 라이브러리가 설치되어 있는 상태입니다.

Shell / Script
grep -r "geotools" /path/to/your/project/lib/ | grep -E '30\.[0-5]|33\.[0-5]|34\.[0-4]'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Magento Open Source