kcve.ai취약점 정보 · 내 자산 확인

CVE-2025-48384 Git allows arbitrary code execution through broken config quoting

Git은 깨진 config 인용을 통해 임의의 코드 실행을 허용한다.

실제 악용 확인(KEV)

설명

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.

Git은 빠르고 확장 가능하며 분산된 리비전 제어 시스템으로, 높은 수준의 운영과 내부 정보에 대한 완전한 액세스를 모두 제공하는 매우 풍부한 명령 세트를 갖추고 있습니다. 설정값을 읽을 때 Git은 후행 캐리지 리턴과 라인 피드(CRLF)를 모두 제거한다. 설정 항목을 쓸 때, CR이 뒤에 있는 값은 인용되지 않기 때문에, 나중에 설정을 읽을 때 CR이 손실됩니다. 서브모듈을 초기화할 때, 서브모듈 경로가 후행 CR을 포함하는 경우, 변경된 경로는 읽혀서 서브모듈이 잘못된 위치로 체크 아웃되는 결과를 초래한다. 서브모듈 훅 디렉토리로 변경된 경로를 가리키는 심볼릭 링크가 존재하고, 서브모듈이 실행 가능한 post-checkout 훅을 포함하고 있다면, 스크립트는 체크아웃 후에 의도치 않게 실행될 수 있다. 이 취약점은 v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1 및 v2.50.1에서 수정되었습니다.

영향 받는 제품 제품 1개

  • git

    git

    해결 버전 있음

    영향 받는 버전

    • 2.43.7 미만
    • 2.44.0-rc0 이상 2.44.4 미만
    • 2.45.0-rc0 이상 2.45.4 미만
    • 2.46.0-rc0 이상 2.46.4 미만
    • 2.47.0-rc0 이상 2.47.3 미만
    • 2.48.0-rc0 이상 2.48.2 미만
    • 2.49.0-rc0 이상 2.49.1 미만
    • 2.50.0-rc0 이상 2.50.1 미만

    해결 버전

    • 2.43.7 이상
    • 2.44.4 이상
    • 2.45.4 이상
    • 2.46.4 이상
    • 2.47.3 이상
    • 2.48.2 이상
    • 2.49.1 이상
    • 2.50.1 이상

참고 자료 1건

‹ 목록

점검 지원 범위 문의

도입 문의