8000 Static IV used in AES-GCM · Issue #12692 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content
Static IV used in AES-GCM #12692
Open
Open
@choseogyeong

Description

@choseogyeong

Hi, I found a potential security issue in your encryption code.

The AES-GCM mode uses a static IV (b"0" * 16) when no IV is provided:
iv = iv or b"0" * BLOCK_SIZE

Using a fixed IV in AES-GCM is insecure. It breaks the guarantees of confidentiality and integrity if reused with the same key.

Please consider generating a random IV (e.g., os.urandom(12)) for each encryption to follow best practices.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: infrastructureInstallation and startup of LocalStack and componentsstatus: backlogTriaged but not yet being worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0